import Index_own from '../components/owner/index.vue'
import Costindex from '../components/owner/cost/costindex.vue';
import FirstPage from '../components/firstpage.vue';


import Owner_message from '../components/owner/project/owner_message.vue'
import Showmessage from '../components/owner/project/showmessage.vue';

import Gascost from '../components/owner/cost/gascost.vue';

import Propertycost from '../components/owner/cost/propertycost.vue';

import Watercost from '../components/owner/cost/watercost.vue';

import Elecost from '../components/owner/cost/elecost.vue';

import Carindex from '../components/owner/cost/carindex.vue'
import Carmanage from '../components/owner/cost/carmanage.vue';
import Parkingcost from '../components/owner/cost/parkingcost.vue';

import Fix from '../components/owner/project/fix.vue';
import Showfix from '../components/owner/project/showfix.vue';

export default {
    routes: [
        {
            path: '/index_owner',
            component: Index_own,
            redirect:'/index_owner/page',
            meta: { requiresAuth: true },
            children: [
                {
                    path:'page',
                    component:FirstPage
                },
                {
                    //业主信息
                    path: 'owner_message',
                    component: Owner_message
                },
                {
                    //物业信息
                    path: 'showmessage',
                    component: Showmessage
                }, {
                    //缴费首页导航
                    path: 'costindex',
                    component: Costindex,
                    redirect:'costindex/watercost',
                    children: [
                        {
                            //燃气费
                            path: 'gascost',
                            component: Gascost
                        },
                        {
                            //物业费
                            path: 'propertycost',
                            component: Propertycost
                        },
                        {
                            //水费
                            path: 'watercost',
                            component: Watercost
                        }, {
                            //电费
                            path: 'elecost',
                            component: Elecost
                        },
                    ]
                },{
                    path:'carindex',
                    component:Carindex,
                    redirect:'carindex/carmanage',
                    children:[
                        {
                            path: 'parkingcost',
                            component: Parkingcost
                        }, {
                            path:'carmanage',
                            component:Carmanage
                        }
                    ]
                },
                {
                    //报修
                    path: 'fix',
                    component: Fix
                }, {
                    //报修列表
                    path: 'showfix',
                    component: Showfix
                }
            ]
        }
    ]
}